package com.handsome.状态模式;

/**
 * 状态模式解决抽奖问题
 *
 * @author niechun
 * @date 2023/3/26 17:28
 */
public class Client {
    public static void main(String[] args) {
        //创建活动对象
        RaffleActivity activity=new RaffleActivity(1);
        for (int i = 0; i < 30; i++) {
            System.out.println("第"+i+"次抽奖");
            activity.deduce();
            activity.raffle();
        }

    }


}
